package com.cskaoyan.controller.user;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.bo.user.AdminUserListBO;
import com.cskaoyan.bean.vo.user.AdminFeedbackVO;
import com.cskaoyan.service.user.AdminFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 冯子靖
 * @Description:
 * @Date: 2022/7/18 20:19
 */
@RestController
@RequestMapping("admin/feedback")
public class AdminFeedbackController {

    @Autowired
    AdminFeedbackService adminFeedbackService;

    @GetMapping("list")
    public BaseRespVo printAdminFeedbackList(AdminUserListBO adminUserListBO) {
        AdminFeedbackVO adminFeedbackVO = adminFeedbackService.printAdminFeedbackList(adminUserListBO);
        return BaseRespVo.ok(adminFeedbackVO);
    }
}
